(do_pending_window_change): No need to clear
authorRichard M. Stallman <rms@gnu.org>
Thu, 3 Jun 1993 06:18:18 +0000 (06:18 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 3 Jun 1993 06:18:18 +0000 (06:18 +0000)
FRAME_NEW_HEIGHT/WIDTH.  Do test width != 0.

src/dispnew.c

index a5f35362f1c7925b7b0cd5d3328e42f39c28e1bc..9f57065c2e4d42e5b8aefc8d3fe84347abcec23e 100644 (file)
@@ -1657,11 +1657,8 @@ do_pending_window_change ()
 
          int height = FRAME_NEW_HEIGHT (f);
          int width = FRAME_NEW_WIDTH (f);
-           
-         FRAME_NEW_HEIGHT (f) = 0;
-         FRAME_NEW_WIDTH (f) = 0;
 
-         if (height != 0)
+         if (height != 0 || width != 0)
            change_frame_size (f, height, width, 0, 0);
        }
     }
@@ -1693,7 +1690,7 @@ change_frame_size (frame, newheight, newwidth, pretend, delay)
   FRAME_NEW_HEIGHT (frame) = 0;
   FRAME_NEW_WIDTH  (frame) = 0;
 
-  /* If an arguments is zero, set it to the current value.  */
+  /* If an argument is zero, set it to the current value.  */
   newheight || (newheight = FRAME_HEIGHT (frame));
   newwidth  || (newwidth  = FRAME_WIDTH  (frame));